class CreateHappenings < ActiveRecord::Migration
  def self.up
    create_table :happenings do |t|
      t.column :provider_id, :integer
      t.column :name, :string
      t.column :location, :string
      t.column :starts_at, :datetime
      t.column :ends_at, :datetime
      t.column :happening_type, :string
      t.column :details, :text
      t.column :url, :string
    end
  end

  def self.down
    drop_table :happenings
  end
end
